﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace WFExtended.Twitter
{
    /// <summary>
    /// Base Twitter Exception
    /// </summary>
    [Serializable]
    public class ATwitterException : ApplicationException
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="ATwitterException"/> class.
        /// </summary>
        public ATwitterException()
            : base()
        { }


        /// <summary>
        /// Initializes a new instance of the <see cref="ATwitterException"/> class.
        /// </summary>
        /// <param name="message">The message.</param>
        /// <param name="inner">The inner.</param>
        public ATwitterException(string message, Exception inner)
            : base(message, inner)
        {
            
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="ATwitterException"/> class.
        /// </summary>
        /// <param name="info">The object that holds the serialized object data.</param>
        /// <param name="context">The contextual information about the source or destination.</param>
        protected ATwitterException(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
        }

        public string Resource { get; set; }

        public string Query { get; set; }
    }
}
